import { EChartsOption } from 'echarts'
export const cpuLineOptions: EChartsOption = {
  title: {
    text: '趋势统计',
    left: 'center'
  },
  xAxis: {
    data: [],
    boundaryGap: false,
    axisTick: {
      show: false
    }
  },
  grid: {
    left: 20,
    right: 20,
    bottom: 20,
    top: 80,
    containLabel: true
  },
  tooltip: {
    trigger: 'axis',
    axisPointer: {
      type: 'cross'
    },
    padding: [5, 10]
  },
  yAxis: {
    axisTick: {
      show: false
    }
  },
  legend: {
    data: ['利用率', '负载率'],
    top: 50
  },
  series: [
    {
      name: '利用率',
      smooth: true,
      type: 'line',
      data: [],
      animationDuration: 2800,
      animationEasing: 'cubicInOut'
    },
    {
      name: '负载率',
      smooth: true,
      type: 'line',
      itemStyle: {},
      data: [],
      animationDuration: 2800,
      animationEasing: 'quadraticOut'
    }
  ]
}
export const memLineOptions: EChartsOption = {
  title: {
    text: '趋势统计',
    left: 'center'
  },
  xAxis: {
    data: [],
    boundaryGap: false,
    axisTick: {
      show: false
    }
  },
  grid: {
    left: 20,
    right: 20,
    bottom: 20,
    top: 80,
    containLabel: true
  },
  tooltip: {
    trigger: 'axis',
    axisPointer: {
      type: 'cross'
    },
    padding: [5, 10]
  },
  yAxis: {
    axisTick: {
      show: false
    }
  },
  legend: {
    data: ['使用量', '可用量'],
    top: 50
  },
  series: [
    {
      name: '使用量',
      smooth: true,
      type: 'line',
      data: [],
      animationDuration: 2800,
      animationEasing: 'cubicInOut'
    },
    {
      name: '可用量',
      smooth: true,
      type: 'line',
      itemStyle: {},
      data: [],
      animationDuration: 2800,
      animationEasing: 'quadraticOut'
    }
  ]
}
export const diskLineOptions: EChartsOption = {
  title: {
    text: '趋势统计',
    left: 'center'
  },
  xAxis: {
    data: [],
    boundaryGap: false,
    axisTick: {
      show: false
    }
  },
  grid: {
    left: 20,
    right: 20,
    bottom: 20,
    top: 80,
    containLabel: true
  },
  tooltip: {
    trigger: 'axis',
    axisPointer: {
      type: 'cross'
    },
    padding: [5, 10]
  },
  yAxis: {
    axisTick: {
      show: false
    }
  },
  legend: {
    data: ['占用率'],
    top: 50
  },
  series: [
    {
      name: '占用率',
      smooth: true,
      type: 'line',
      data: [],
      animationDuration: 2800,
      animationEasing: 'cubicInOut'
    }
  ]
}
